package com.cloud.base;

/**
 * @version V1.0
 * @Description: 异常枚举量类
 * @Date 2018年11月6日 下午1:39:23
 */
public enum ExceptionConstant {
    REQUEST_ERROR(500, "服务器内部异常！"),
    REQUEST_SUCCESS(10000, "请求成功!"),
    REQUEST_TIMEOUT(10001, "请求超时请重试！"),
    REQUEST_PAREM_ERROR(10002, "参数异常!"),
    REQUEST_REPEAT(10003, "请求处理中，请勿重复提交"),

    SIGN_ATURE_ERROR(30001, "请求错误！"),
    SIGN_ATURE_PARAME_NULL(30002, "签名参数为空!"),
    TOKEN_PARAME_NULL(30003, "TOKEN参数为空!"),
    USER_TOKEN_EXPIRED(30004, "用户TOKE已过期！"),

    USER_LOGIN_EXCEPTION(40016, "该账号登录异常，已被限制登录\n解封时间：{0}"),
    TASK_DATE_UPPER_LIMIT(60004, "该淘宝号当天任务已经达到上限，请明天再来！"),
    ;

    ExceptionConstant(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private Integer code;
    private String msg;
}
